from django.conf.urls import url

from accounts import views

urlpatterns = [
    # 用户登录表单
    url(r'^users/login/$', views.user_login, name='user_login'),
    # 用户注册表单
    url(r'^users/register/$', views.user_register, name='user_register'),
    # 用户退出
    url(r'^users/logout/$', views.user_logout, name='user_logout'),
    # 地址列表
    url(r'^users/address/list/$', views.address_list, name='address_list'),
    # 地址修改和编辑  users/address/edit/add/  users/address/edit/12/
    url(r'^users/address/edit/(?P<pk>\S+)/$', views.address_edit, name='address_edit'),
    #
    url(r'^users/address/delete/(?P<pk>\S+)/$', views.address_delete, name='address_delete'),
]